﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PSPM.aspx.cs" Inherits="H2.NET.Web.Pages.PSPM" %>
<%@ Register Assembly="H2.NET.Controls" Namespace="H2.NET.Controls" TagPrefix="H2" %>
<%@ Register Assembly="Anthem" Namespace="Anthem" TagPrefix="anthem" %>
<%@ Register Src="../../Controls/AssessmentList.ascx" TagName="AssessmentList" TagPrefix="uc1" %>
<%@ Register src="../../Controls/AssessmentExtend.ascx" tagname="Assessment" tagprefix="uc2" %>
<%@ Register src="../../Controls/Attachment.ascx" tagname="Attachment" tagprefix="uc3" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link type="text/css" rel="stylesheet" href="../../Resource/Css/Style.css" />    
</head>
<body>
    <form id="form" runat="server">
    <div id="PRINT_A" style="width: 800px; border: solid 1px #D0D0BF">
    <!--标题-->
    <div style="border-bottom:solid 1px #D0D0BF"> 
        <table>
            <tr>
                <td style="width:140px;height:40px;"><img alt="" src="../../Resource/Images/Logo_AkzoNobel.gif" /></td>
                <td style="font-size:13px;"><b>Master Sales Person Change  </b>&nbsp;&nbsp;&nbsp;&nbsp;<anthem:Label ID="INFO" runat="server" ForeColor="Red" AutoUpdateAfterCallBack="true"></anthem:Label></td>
                <td style="width:160px;" align="left">Document NO. F066V2.0<br />No: <anthem:Label ID="ApplicationNo" runat="server" AutoUpdateAfterCallBack="true"></anthem:Label></td>
            </tr>
        </table>
    </div>
    
    <div>
    <table>
        <tr>
          
            
             

            <td>           <anthem:Label ID="DrpPriority_L" Text="Priority" runat="server" 
                            AutoUpdateAfterCallBack="True" UpdateAfterCallBack="True" ></anthem:Label>
                    <anthem:DropDownList ID="DrpPriority" runat="server" AutoCallBack="true" 
                            EnableCallBack="true" AutoUpdateAfterCallBack="true" CssClass="text" 
                            Width="108" >
                        <asp:ListItem Text=""></asp:ListItem>
                        <asp:ListItem Text="Urgent" Value="1"></asp:ListItem>
                        <asp:ListItem Text="High" Value="2"></asp:ListItem>
                        <asp:ListItem Text="Routine" Value="3"></asp:ListItem>
                    </anthem:DropDownList>
                    </td>  
        </tr>
        <tr>
            <td style="width:4px;" ></td>
            <td style="width:4px; text-align:right"><anthem:Label ID="Type_L" Text="Type" runat="server" 
                            AutoUpdateAfterCallBack="True" UpdateAfterCallBack="True"></anthem:Label></td> 
            <td style="width:100px;">
                <anthem:DropDownList ID="VD_Category" runat="server" AutoCallBack="true" 
                    EnableCallBack="true" AutoUpdateAfterCallBack="true" Width="108" 
                    onselectedindexchanged="VD_Category_SelectedIndexChanged">
                    <asp:ListItem Text="    " Value="0" Selected="True" ></asp:ListItem>
                    <asp:ListItem Text="1, 替换" Value="1" ></asp:ListItem>
                    <asp:ListItem Text="2, 增加" Value="2" ></asp:ListItem>
                    <asp:ListItem Text="3, 删除" Value="3"></asp:ListItem>
                    <asp:ListItem Text="4, 修改销售员信息" Value="4"></asp:ListItem>
                    <%--<asp:ListItem Text="4, Block" Value="4"></asp:ListItem>--%>
                </anthem:DropDownList>
            </td>
            <%-- <anthem:CheckBox ID="VD" Text="客户销售人员变更" runat="server" AutoUpdateAfterCallBack="true" OnCheckedChanged="VD_CheckedChanged" AutoCallBack="true" EnableCallBack="true"/>
            <anthem:CheckBox ID="SA" Text="销售人员邮箱电话更新" runat="server" AutoUpdateAfterCallBack="true" OnCheckedChanged="VD_CheckedChanged" AutoCallBack="true" EnableCallBack="true" />--%>
            <td style="width:4px; text-align:left"><anthem:Label ID="Sales_Office_L" Text="Sales_Office" runat="server" 
                            AutoUpdateAfterCallBack="True" UpdateAfterCallBack="True"></anthem:Label></td> 
            <td style="width:100px;">
            <anthem:DropDownList ID="VD_Sales_Office" runat="server" AutoCallBack="true" 
                EnableCallBack="true" AutoUpdateAfterCallBack="true" Width="108" 
                onselectedindexchanged="VD_Sales_Office_SelectedIndexChanged">
            </anthem:DropDownList></td>
     
            <td style="width:4px; text-align:right"><anthem:Label ID="Region_L" Text="Region" runat="server" 
                            AutoUpdateAfterCallBack="True" UpdateAfterCallBack="True"></anthem:Label></td> 
            <td style="width:100px;">
            <anthem:DropDownList ID="VD_Region" runat="server" AutoCallBack="true" 
                EnableCallBack="true" AutoUpdateAfterCallBack="true" Width="108" 
                onselectedindexchanged="VD_Region_SelectedIndexChanged">
            </anthem:DropDownList></td>
             <td style="width:4px; "></td>
             <td style="width:100px;"></td>

        </tr>

        <tr> 
            <td colspan="1" style="width:4px; text-align:right"><anthem:Label ID="Sales_Division_L" Text="Sales_Division" runat="server" 
                            AutoUpdateAfterCallBack="True" UpdateAfterCallBack="True"></anthem:Label></td> 
            <td colspan="3" align="center" style=" text-align:center; width:100px;"><anthem:CheckBox ID="Vd_Salesperson_Division_K1" runat="server"  Text="K1-零售"
                            AutoUpdateAfterCallBack="true"  Enabled="false"
                            oncheckedchanged="Vd_Salesperson_Division_K1_CheckedChanged" 
                            AutoCallBack="True" /></td>
            <td  colspan="3" align="center"style="text-align:center; width:100px;"><anthem:CheckBox ID="Vd_Salesperson_Division_K2" runat="server"  Text="K2-工程"
                            AutoUpdateAfterCallBack="true"  Enabled="false"
                            oncheckedchanged="Vd_Salesperson_Division_K1_CheckedChanged" 
                            AutoCallBack="True" /></td>
            <td colspan="2" align="center" style="text-align:center; width:100px;"><anthem:CheckBox ID="Vd_Salesperson_Division_K3" runat="server"  Text="K3-卖场"
                            AutoUpdateAfterCallBack="true"  Enabled="false"
                            oncheckedchanged="Vd_Salesperson_Division_K1_CheckedChanged" 
                            AutoCallBack="True" /></td>  
            <%--<td colspan="3" style="width:150px;"><anthem:CheckBox ID="Vd_Salesperson_Division_K1K2" runat="server"  Text="K1&K2 - 零售兼工程"
                            AutoUpdateAfterCallBack="true" 
                            oncheckedchanged="Vd_Salesperson_Division_K1_CheckedChanged" 
                            AutoCallBack="True" /></td>    --%>     
       </tr>
       <tr>    
            <td style="width:4px; text-align:right"><anthem:Label ID="Sales_Group_L" Text="Sales_Group" runat="server" 
                            AutoUpdateAfterCallBack="True" UpdateAfterCallBack="True"></anthem:Label></td>                   
            <td colspan="2" style="width:100px;"><anthem:CheckBox ID="Vd_Ka" runat="server"  Text="K01" 
                AutoUpdateAfterCallBack="true" 
                oncheckedchanged="Vd_Salesperson_Division_K1_CheckedChanged" 
                AutoCallBack="True" /> 
             <anthem:CheckBox ID="Vd_Kd" runat="server"  Text="K03"
                AutoUpdateAfterCallBack="true" 
                oncheckedchanged="Vd_Salesperson_Division_K1_CheckedChanged" 
                AutoCallBack="True" />     
             <anthem:CheckBox ID="Vd_Kc" runat="server"  Text="K02"
                AutoUpdateAfterCallBack="true" 
                oncheckedchanged="Vd_Salesperson_Division_K1_CheckedChanged" 
                AutoCallBack="True" /></td>    
            <td colspan="1" style="height:2px;"></td>
            <td colspan="2" style="width:100px;"><anthem:CheckBox ID="Vd_Ki" runat="server"  Text="K04"
                AutoUpdateAfterCallBack="true" 
                oncheckedchanged="Vd_Salesperson_Division_K1_CheckedChanged" 
                AutoCallBack="True" /> 
            <anthem:CheckBox ID="Vd_Kg" runat="server"  Text="K07"
                AutoUpdateAfterCallBack="true" 
                oncheckedchanged="Vd_Salesperson_Division_K1_CheckedChanged" 
                AutoCallBack="True" />                                  
            <anthem:CheckBox ID="Vd_Kh" runat="server"  Text="K08"
                AutoUpdateAfterCallBack="true" 
                oncheckedchanged="Vd_Salesperson_Division_K1_CheckedChanged" 
                AutoCallBack="True" />
                <anthem:CheckBox ID="Vd_Kha" runat="server"  Text="K10"
                AutoUpdateAfterCallBack="true" 
                oncheckedchanged="Vd_Salesperson_Division_K1_CheckedChanged" 
                AutoCallBack="True" /></td>  
            <td colspan="1" style="height:2px;"></td>
            <td colspan="2" style="width:100px;"><anthem:CheckBox ID="Vd_Ke" runat="server"  Text="K05"
                AutoUpdateAfterCallBack="true" 
                oncheckedchanged="Vd_Salesperson_Division_K1_CheckedChanged" 
                AutoCallBack="True" /> 
            <anthem:CheckBox ID="Vd_Kf" runat="server"  Text="K06"
                AutoUpdateAfterCallBack="true" 
                oncheckedchanged="Vd_Salesperson_Division_K1_CheckedChanged" 
                AutoCallBack="True" /></td>  
                                                    
      </tr>
    </table>        
    </div>     
    
    <!--页签栏-->
    <div>
        <table style="border-bottom:solid 1px #D0D0BF">
            <tr>
                <td colspan="2" style="height:2px;"></td>
            </tr>
            <tr>
                <td style="width:1px;"></td>
                <td style="height:34px;" valign="baseline">
                    <anthem:LinkButton ID="VD_K1" Text="销售-K1" runat="server" AutoUpdateAfterCallBack="true"  CssClass="tabs2" EnableCallBack="true" Width="120" onclick="Tabs_Click"></anthem:LinkButton>
                    <anthem:LinkButton ID="VD_K2" Text="工程-K2" runat="server" AutoUpdateAfterCallBack="true" CssClass="tabs1" EnableCallBack="true" Width="90" Visible="false" onclick="Tabs_Click"></anthem:LinkButton> 
                    <anthem:LinkButton ID="VD_K3" Text="卖场-K3" runat="server" AutoUpdateAfterCallBack="true" CssClass="tabs1" EnableCallBack="true" Width="90" Visible="false" onclick="Tabs_Click"></anthem:LinkButton> 
                    <anthem:LinkButton ID="VD_K1K2" Text="K1+K2" runat="server" AutoUpdateAfterCallBack="true" CssClass="tabs1" EnableCallBack="true" Width="90" Visible="false" onclick="Tabs_Click"></anthem:LinkButton> 

                </td>

            </tr>
        </table>
    </div>    
        
    <anthem:Panel ID="P_VK1" runat="server" AutoUpdateAfterCallBack="true" >  
    <div style="margin:2px;">
        <fieldset>
            <legend>
                Sales Area Data K1
            </legend>
            <table>
                <tr><td style="height:6px;"></td></tr>         
                 <tr>
            <td>
                <H2:GridView ID="gv_Sales_K1" runat="server" CssClass="gv" 
                    AutoUpdateAfterCallBack="true" AutoGenerateColumns="False" Width="100%"  OnDataBinding="gv_Sales_1_DataBinding"
                    ChangedColumnIndex="-1" ChangedRowIndex="-1" IsShowDelete="False" EnableCallBack="true">
                    <HeaderStyle CssClass="gv-head" />
                    <RowStyle CssClass="gv-row" />
                    <Columns>
                    </Columns>
                </H2:GridView>
            </td>
        </tr> 
         <tr>
            <td>
                <anthem:Button ID="Add_K1" runat="server" AutoUpdateAfterCallBack="true" Text="Add Row" EnableCallBack="true" OnClick="Add_Click" />&nbsp;&nbsp;
                <anthem:Button ID="Delete_K1" runat="server" AutoUpdateAfterCallBack="true" Text="Delete" EnableCallBack="true" OnClick="Delete_Click" />
            </td>
        </tr>
            </table>
        </fieldset>
        </div>
        </anthem:Panel>
  <anthem:Panel ID="P_VK2" runat="server" AutoUpdateAfterCallBack="true" >  
    <div style="margin:2px;">
        <fieldset>
            <legend>
                Sales Area Data K2
            </legend>
            <table>
                <tr><td style="height:6px;"></td></tr>         
                 <tr>
            <td>
                <H2:GridView ID="gv_Sales_K2" runat="server" CssClass="gv" 
                    AutoUpdateAfterCallBack="true" AutoGenerateColumns="False" Width="100%"  OnDataBinding="gv_Sales_1_DataBinding"
                    ChangedColumnIndex="-1" ChangedRowIndex="-1" IsShowDelete="False" EnableCallBack="true">
                    <HeaderStyle CssClass="gv-head" />
                    <RowStyle CssClass="gv-row" />
                    <Columns>
                    </Columns>
                </H2:GridView>
            </td>
        </tr> 
         <tr>
            <td>
                <anthem:Button ID="Add_K2" runat="server" AutoUpdateAfterCallBack="true" Text="Add Row" EnableCallBack="true" OnClick="Add_Click" />&nbsp;&nbsp;
                <anthem:Button ID="Delete_K2" runat="server" AutoUpdateAfterCallBack="true" Text="Delete" EnableCallBack="true" OnClick="Delete_Click" />
            </td>
        </tr>
            </table>
        </fieldset>
        </div>
        </anthem:Panel>     
 <anthem:Panel ID="P_VK3" runat="server" AutoUpdateAfterCallBack="true"  >  
    <div style="margin:2px;">
        <fieldset>
            <legend>
                Sales Area Data K3
            </legend>
            <table>
                <tr><td style="height:6px;"></td></tr>         
                 <tr>
            <td>
                <H2:GridView ID="gv_Sales_K3" runat="server" CssClass="gv" 
                    AutoUpdateAfterCallBack="true" AutoGenerateColumns="False" Width="100%"  OnDataBinding="gv_Sales_1_DataBinding"
                    ChangedColumnIndex="-1" ChangedRowIndex="-1" IsShowDelete="False" EnableCallBack="true">
                    <HeaderStyle CssClass="gv-head" />
                    <RowStyle CssClass="gv-row" />
                    <Columns>
                    </Columns>
                </H2:GridView>
            </td>
        </tr> 
         <tr>
            <td>
                <anthem:Button ID="Add_K3" runat="server" AutoUpdateAfterCallBack="true" Text="Add Row" EnableCallBack="true" OnClick="Add_Click" />&nbsp;&nbsp;
                <anthem:Button ID="Delete_K3" runat="server" AutoUpdateAfterCallBack="true" Text="Delete" EnableCallBack="true" OnClick="Delete_Click" />
            </td>
        </tr>
            </table>
        </fieldset>
        </div>
        </anthem:Panel>    
      <anthem:Panel ID="P_VK1K2" runat="server" AutoUpdateAfterCallBack="true"  >  
    <div style="margin:2px;">
        <fieldset>
            <legend>
                General Data K1K2
            </legend>
            <table>
                <tr><td style="height:6px;"></td></tr>         
                 <tr>
            <td>
                <H2:GridView ID="gv_Sales_K1K2" runat="server" CssClass="gv" 
                    AutoUpdateAfterCallBack="true" AutoGenerateColumns="False" Width="100%"  OnDataBinding="gv_Sales_1_DataBinding"
                    ChangedColumnIndex="-1" ChangedRowIndex="-1" IsShowDelete="False" EnableCallBack="true">
                    <HeaderStyle CssClass="gv-head" />
                    <RowStyle CssClass="gv-row" />
                    <Columns>
                    </Columns>
                </H2:GridView>
            </td>
        </tr> 
            </table>
        </fieldset>
        </div>
        </anthem:Panel>           
    <div style="margin:2px;">
        <fieldset>
            <legend>
            Attachments
                        </legend>
            <table> 
              <tr><td colspan="2" style="height:6px;"></td></tr>  
              <tr>
                  <td style="width:110px;" valign="top">Attachments:</td> 
                  <td><div style="width:500px;"><uc3:Attachment ID="Attachment1" runat="server" /></div></td>
              </tr>
            </table>
        </fieldset>
    </div> 
    
        <div style="margin:2px;">
            <fieldset>
                <legend>
                   DMO 
                </legend>
                  <anthem:Panel ID="P_DMO" runat="server" AutoUpdateAfterCallBack="true" Visible="false">  
                <table> 
                <tr>
                 <td ><anthem:Label ID="DMO_DrpPriority_L" Text="Priority" runat="server" AutoUpdateAfterCallBack="true"></anthem:Label></td>
            <td class="style3"><anthem:DropDownList ID="DMO_DrpPriority" runat="server" AutoCallBack="true" EnableCallBack="true" AutoUpdateAfterCallBack="true"   CssClass="text" Width="100">
                        <asp:ListItem Text=""></asp:ListItem>
                        <asp:ListItem Text="Urgent" Value="1"></asp:ListItem>
                        <asp:ListItem Text="High" Value="2"></asp:ListItem>
                        <asp:ListItem Text="Routine" Value="3"></asp:ListItem>
                 </anthem:DropDownList>
            </td>
            </tr>
             </table>
         </anthem:Panel> 
                <table> 
                    <tr><td style="width:111px;" valign="top">SAP Code:</td>
                        <td><anthem:TextBox ID="SAP_Code" runat="server" TextMode="MultiLine" Height="60" Width="624" AutoUpdateAfterCallBack="true"></anthem:TextBox></td>
                    </tr>
                </table>
            </fieldset>
        </div> 
        
        <div style="margin:2px;">
            <table width="100%">
                <tr><td><uc1:AssessmentList ID="AssessmentList1" runat="server" /></td></tr>
            </table>
        </div>
        
        <div style="margin:2px;">
            <table width="100%">
		<tr><td style="height:10px;"></td></tr>
                <tr><td><uc2:Assessment ID="Assessment1" runat="server" /></td></tr>
            </table>
        </div>
        
        <div>
            <table width="100%">
                <tr><td style="height:6px;"></td></tr>
                <tr>
                    <td style="width:114px;"></td>
                    <td>
                        <anthem:Button ID="Send" runat="server" Text="<%$ Resources:Global,C_00_Submit %>" PreCallBackFunction="Submit_PreCallBack" AutoUpdateAfterCallBack="true" EnableCallBack="true" OnClick="Send_Click" />
                        <anthem:Label ID="Split" runat="server" Width="10" AutoUpdateAfterCallBack="true"></anthem:Label>
                        <anthem:Button ID="Close" runat="server" Text="<%$ Resources:Global,C_00_Close %>" OnClientClick="window.close();" />
                    </td>
                </tr>
                
            </table>
        </div>
        
        <div style="height:10px;">
        </div>
    </div>
    </form>
</body>
</html>
